﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using System.Reflection;
using System.IO;

namespace TRec.Windows.UI
{
    public static class Images
    {
        public static Bitmap GetSplashScreen()
        {
            //public static Image SplashScreen = Image.FromStream(Program.GetResource("SplashScreen.png"));
            Assembly a = Assembly.GetExecutingAssembly();
            Bitmap result = null;
            using ( Stream st = a.GetManifestResourceStream( "TRec.Windows.UI.Resources.Images.SplashScreen.png" ) )
            {
                result = (Bitmap)Bitmap.FromStream( st, true );
            }
            return result;
        }
    }
}


